package edu.gmu.messages;
public class EchoRequest implements edu.gmu.middleware.Message{
public EchoRequest() { }
public int[] payload;
public int count;
public String missive;

public void marshal(edu.gmu.streams.BlockOutputStream output) throws java.io.IOException{
    int payloadSize = payload.length;
    output.writeInt( payloadSize );
    output.write( payload );
    output.writeInt(count);
    output.writeUTF(missive);
}

public void unmarshal(edu.gmu.streams.BlockInputStream input) throws java.io.IOException{
    int payloadSize = input.readInt();
    this.payload = new int[payloadSize];
    input.read( payload );
    this.count = input.readInt();
    this.missive = input.readUTF();
}
}
